package 容器;

public class SB
{
	public static void main(String[] args)
	{
		System.out.println("=====");
		StringBuffer sb = new StringBuffer();
		System.out.println("=="+sb);
		/*大小*/
		System.out.println("=="+sb.length());
		/*容量*/
		System.out.println("=="+sb.capacity());
		/*增加*/
		/*增加字符串*/
		System.out.println("=="+sb.append("你好"));
		/*在上一次增加的基础之上增加*/
		System.out.println("=="+sb.append("远方"));
		/*在上一次增加的基础之上增加*/
		System.out.println("=="+sb.append("美好的未来"));
	}
}
